﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SpiderPlatform.Entity
{
    class FreshCategoryEntity
    {
        public int CatrgoryID { get; set; }

        public string CategoryName { get; set; }
    }

    class FrechProduct {

        public int BrandID { get; set; }
        public string BrandName { get; set; }
        /// <summary>
        /// 是否冷链
        /// </summary>
        public string IsCold { get; set; }

        public string SKU { get; set; }
        /// <summary>
        /// 分类
        /// </summary>
        public string CateGoryName { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 副标题
        /// </summary>
        public string Title { get; set; } //adv_str
        /// <summary>
        /// 规格
        /// </summary>
        public string Summary { get; set; }
        public decimal Price { get; set; }
        /// <summary>
        /// 会员价
        /// </summary>
        public decimal PlusPprice { get; set; }
        /// <summary>
        /// 是否售罄
        /// </summary>
        public int IsSellOut { get; set; }
        /// <summary>
        /// 标签
        /// </summary>
        public string Tag { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public string ValuePackPrice { get; set; }
        /// <summary>
        /// 评星
        /// </summary>
        public string Star { get; set; }
        /// <summary>
        /// 评论数
        /// </summary>
        public int Reviews { get; set; }
        /// <summary>
        /// 是否优质
        /// </summary>
        public int IsGood
        {
            get
            {
                return this.Name.IndexOf("优质") != -1?1:0;
            }
        }
        /// <summary>
        /// 是否低价
        /// </summary>
        public int IsLower
        {
            get
            {
                return this.Name.IndexOf("低价") != -1 ? 1 : 0;
            }
        }
        /// <summary>
        /// 销量
        /// </summary>
        public int OrderCount { get; set; }// order_quantity
    }
}
